<?php

namespace app\controller\admin;

use app\result\UserResult;
use think\App;
use think\facade\Request;

class User extends BaseAdmin
{
    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->objResult = new UserResult();
    }

    /**
     * 管理员获取用户列表
     */
    public function list()
    {
        data_exit_json($this->objResult->list($this->param));
    }

    /**
     * 管理员获取用户信息
     */
    public function get()
    {
        data_exit_json($this->objResult->get(input('user_code')));
    }

    public function save()
    {
        data_exit_json($this->objResult->save($this->param));
    }


}
